package com.auxgroup.smarthome.inner.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by root on 17-7-25.
 */
@Entity
@Table(name = "base_codes")
public class BaseCodesEntity {
    @Id
    @Column(name="code_id",length = 36)
    private String codeId;

    @Column(name="code",length = 32)
    private String code;

    @Column(name="name",length = 32)
    private String name;

    @Column(name="sort",length = 5)
    private Integer sort;

    @Column(name="is_enable",length = 1)
    private Integer isEnable;

    @Column(name="type_code")
    private String typeCode;

    @Column(name="type_name")
    private String typeName;

    public String getCodeId() {
        return codeId;
    }

    public void setCodeId(String codeId) {
        this.codeId = codeId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(Integer isEnable) {
        this.isEnable = isEnable;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
}

